package com.ruoyi.purchase.mapper;

import com.ruoyi.purchase.domain.LogisticDetail;

import java.util.List;

/**
 * LogisticDetailMapper接口
 * 
 * @author kevinness
 * @date 2025-02-01
 */
public interface LogisticDetailMapper 
{
    /**
     * 查询LogisticDetail
     * 
     * @param id LogisticDetail主键
     * @return LogisticDetail
     */
    public LogisticDetail selectLogisticDetailById(Long id);

    /**
     * 查询LogisticDetail列表
     * 
     * @param logisticDetail LogisticDetail
     * @return LogisticDetail集合
     */
    public List<LogisticDetail> selectLogisticDetailList(LogisticDetail logisticDetail);

    /**
     * 新增LogisticDetail
     * 
     * @param logisticDetail LogisticDetail
     * @return 结果
     */
    public int insertLogisticDetail(LogisticDetail logisticDetail);

    /**
     * 修改LogisticDetail
     * 
     * @param logisticDetail LogisticDetail
     * @return 结果
     */
    public int updateLogisticDetail(LogisticDetail logisticDetail);

    /**
     * 删除LogisticDetail
     * 
     * @param id LogisticDetail主键
     * @return 结果
     */
    public int deleteLogisticDetailById(Long id);

    /**
     * 批量删除LogisticDetail
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteLogisticDetailByIds(Long[] ids);

    /**
     * 根据订单编号查询所有的物流详情
     *
     * @param orderNo 订单编号
     * @return 物流详情
     */
    public List<LogisticDetail> selectLogisticDetailByOrderNo(String orderNo);
}
